package cn.jinjimi.app.custom.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Roy on 16/07/06.
 */
public class Follow implements Serializable {

    public static final int CHANNEL_HAND = 1;
    public static final int CHANNEL_POLICY = 2;

    /* 附件数量 */
    @SerializedName("attachments")
    public int attachmentNum;

    /* 添加渠道  1：手动添加，2：在线投保*/
    @SerializedName("channel")
    public int channel;

    /* 内容 */
    @SerializedName("content")
    public String content;

    /* 客户id */
    @SerializedName("customer_id")
    public long customerId;

    /* 根据时间 */
    @SerializedName("follow_time")
    public long time;

    /* id */
    @SerializedName("id")
    public long id;

    @SerializedName("attachments_list")
    public List<Attachment> attachments;

    public class Attachment implements Serializable {
        public static final String TYPE_IMAGE = "image";
        public static final String TYPE_HTML = "html";

        /* 	跟进记录id	 */
        @SerializedName("follow_id")
        public long followId;

        /* 跟进记录附件id */
        @SerializedName("id")
        public long id;

        /* 跟进记录原图 跳转url */
        @SerializedName("image_url")
        public String imageUrl;

        /* 跟进记录缩略图 */
        @SerializedName("thumbnail_url")
        public String thumbnailUrl;

        /* 附件类型。image:图片，html网页*/
        @SerializedName("media_type")
        public String mediaType;

        /* 附件名称  */
        @SerializedName("name")
        public String name;
    }
}

